<?php

class ReceiveFriendChangeStatus {
	
	private $message = "";
	private $auth = null;
    function ReceiveFriendChangeStatus() {
    	$this->auth = new Authority();
    }
    
    public function  run() {
    	myEcho($_POST[Message]);
    	if($this->auth->adminLevel>2) {
    		if($_POST[Message]=="我在线上") {
    			$this->message = "欢迎回来。。主人抱抱。。";
    		}else if($_POST[Message]=="离开") {
    			$this->message = "主人不要离开我。。要快点回来-。-";
    		}else if($_POST[Message]=="离线") {
    			$this->message = "主人又抛弃我啦。。5555";
    		}
    		
    		
    	}
    }
    
	private function __get($property_name) {
		return $this-> $property_name;
	}

	private function __set($property_name, $value) {
		$this->$property_name = $value;
	}
	
	
}
?>